Spread Windows Forms 15.0
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / CalcHelper Class / Sum Method / Sum(Double[],Double) Method
The set of values.
The sum of all square values.


In This Topic
    Sum(Double[],Double) Method
    In This Topic
    Returns the sum of all values in a set of values.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Sum( _
       ByVal values() As Double, _
       ByRef sum2 As Double _
    ) As Double
    'Usage
     
    
    Dim values() As Double
    Dim sum2 As Double
    Dim value As Double
     
    value = CalcHelper.Sum(values, sum2)
    public static double Sum( 
       double[] values,
       out double sum2
    )

    Parameters

    values
    The set of values.
    sum2
    The sum of all square values.

    Return Value

    A System.Double value represents the sum of all values.
    See Also